package com.t.bricks.bussiness.db.entity.recharge.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import com.t.bricks.annotation.DataInfo;

/**
 * 微信退款'WechatRefund'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 * @author HuangXinBian
 */
@ApiModel("微信退款WechatRefund")
@DataInfo(sDbName="BricksMall", sTableName="WechatRefund")
public class WechatRefundBase implements Serializable {

	private static final long serialVersionUID = 1L;// 使用rmi时需修改

	/**
	 * 记录编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="WechatRefund",
		sName="sId", sComment="记录编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="记录编号", example="", position=0)
	//[end]
	protected String sId;

	/**
	 * 充值编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="WechatRefund",
		sName="sRechargeId", sComment="充值编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="充值编号", example="", position=1)
	//[end]
	protected String sRechargeId;

	/**
	 * 购物编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="WechatRefund",
		sName="sOrderId", sComment="购物编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=2 )
	@ApiModelProperty(value="购物编号", example="", position=2)
	//[end]
	protected String sOrderId;

	/**
	 * 商品编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="WechatRefund",
		sName="sWaresId", sComment="商品编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=3 )
	@ApiModelProperty(value="商品编号", example="", position=3)
	//[end]
	protected String sWaresId;

	/**
	 * 总金额(分)
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="WechatRefund",
		sName="iTotalFee", sComment="总金额(分)", isDbField=true, sDbFileType="int",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=4 )
	@ApiModelProperty(value="总金额(分)", example="0", position=4)
	//[end]
	protected Integer iTotalFee;

	/**
	 * 退款金额(分)
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="WechatRefund",
		sName="iRefundFee", sComment="退款金额(分)", isDbField=true, sDbFileType="int",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=5 )
	@ApiModelProperty(value="退款金额(分)", example="0", position=5)
	//[end]
	protected Integer iRefundFee;

	/**
	 * 备注
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="WechatRefund",
		sName="sMemo", sComment="备注", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=200, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=6 )
	@ApiModelProperty(value="备注", example="", position=6)
	//[end]
	protected String sMemo;

	/**
	 * 取 记录编号
	 * @return String
	 */
	public String getsId() {
		return sId;
	}

	/**
	 * 设置记录编号
	 * @param sId
	 */
	public void setsId(String sId) {
		this.sId = sId;
	}

	/**
	 * 取 充值编号
	 * @return String
	 */
	public String getsRechargeId() {
		return sRechargeId;
	}

	/**
	 * 设置充值编号
	 * @param sRechargeId
	 */
	public void setsRechargeId(String sRechargeId) {
		this.sRechargeId = sRechargeId;
	}

	/**
	 * 取 购物编号
	 * @return String
	 */
	public String getsOrderId() {
		return sOrderId;
	}

	/**
	 * 设置购物编号
	 * @param sOrderId
	 */
	public void setsOrderId(String sOrderId) {
		this.sOrderId = sOrderId;
	}

	/**
	 * 取 商品编号
	 * @return String
	 */
	public String getsWaresId() {
		return sWaresId;
	}

	/**
	 * 设置商品编号
	 * @param sWaresId
	 */
	public void setsWaresId(String sWaresId) {
		this.sWaresId = sWaresId;
	}

	/**
	 * 取 总金额(分)
	 * @return Integer
	 */
	public Integer getiTotalFee() {
		return iTotalFee;
	}

	/**
	 * 设置总金额(分)
	 * @param iTotalFee
	 */
	public void setiTotalFee(Integer iTotalFee) {
		this.iTotalFee = iTotalFee;
	}

	/**
	 * 取 退款金额(分)
	 * @return Integer
	 */
	public Integer getiRefundFee() {
		return iRefundFee;
	}

	/**
	 * 设置退款金额(分)
	 * @param iRefundFee
	 */
	public void setiRefundFee(Integer iRefundFee) {
		this.iRefundFee = iRefundFee;
	}

	/**
	 * 取 备注
	 * @return String
	 */
	public String getsMemo() {
		return sMemo;
	}

	/**
	 * 设置备注
	 * @param sMemo
	 */
	public void setsMemo(String sMemo) {
		this.sMemo = sMemo;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return WechatRefundBase
	 */
	public static WechatRefundBase copy(WechatRefundBase source) {
		if (null == source) {
			return null;
		}
		
		WechatRefundBase target = new WechatRefundBase();
		target.setsId(source.getsId());
		target.setsRechargeId(source.getsRechargeId());
		target.setsOrderId(source.getsOrderId());
		target.setsWaresId(source.getsWaresId());
		target.setiTotalFee(source.getiTotalFee());
		target.setiRefundFee(source.getiRefundFee());
		target.setsMemo(source.getsMemo());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return WechatRefundBase
	 */
	public WechatRefundBase clone() {
		return copy(this);
	}
	
}
